<%@page import="entities.Page"%>
<%@page import="java.util.TreeMap"%>
<%@page import="helpers.UrlHelper"%>
<%
TreeMap check = (TreeMap) request.getAttribute("check");
Page static_page = (Page) request.getAttribute("page");
String title = (String) request.getAttribute("title");
%>
<jsp:include page="/admin/layouts/header.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>

<script type="text/javascript" src="/admin/js/static_page.js"></script>
<script type="text/javascript" src="/admin/js/plugins/wysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="/admin/js/plugins/wysiwyg/wysiwyg.image.js"></script>
<script type="text/javascript" src="/admin/js/plugins/wysiwyg/wysiwyg.link.js"></script>
<script type="text/javascript" src="/admin/js/plugins/wysiwyg/wysiwyg.table.js"></script>
<script type="text/javascript">
<!--
jQuery(document).ready(function () {
	jQuery("ul.multipletabmenu li a[href*=<%=static_page.getId()%>]").parent().addClass("current");
});
//-->		
</script>
		<div class="maincontent noright">
        	<div class="maincontentinner">
                <ul class="maintabmenu multipletabmenu">
                	<li><a href="/admin/page/about-us">About Us</a></li>
                	<li><a href="/admin/page/privacy-policy">Privacy Policy</a></li>
                	<li><a href="/admin/page/terms-conditions">Terms & Conditions</a></li>
                </ul><!--maintabmenu-->
                
                <div class="content">
					<jsp:include page="/admin/elements/message_box.jsp">
		            	<jsp:param name="language" value="1" />
					</jsp:include>
                    <div class="contenttitle">
                    	<h2 class="form"><span><%=title %></span></h2>
                    </div><!--contenttitle-->
            
                    <form method="post" action="#" class="stdform stdform2" id="edit_page_form">
                    	
                        <p>
                        	<label>Title</label>
                            <span class="field">
                            	<input type="text" class="smallinput" name="title" id="p_title" value="<%=static_page.getTitle() != null ? static_page.getTitle() : "" %>">
                            	<% if (check.get("title") != null) { %>
									<label for="p_title" generated="true" class="error"><%=check.get("title") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        <p>
                        	<label>Content</label>
                            <span class="field">
                            	<textarea id="p_content" class="longinput wysiwyg" name="content"  rows="5" cols="80"><%=static_page.getContent() != null ? static_page.getContent() : "" %></textarea>
                            	<% if (check.get("content") != null) { %>
									<label for="p_content" generated="true" class="error"><%=check.get("content") %></label>
								<% } %>
                            </span>
                        </p>
                        
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2">Submit Button</button>
                            <input type="reset" value="Reset Button" class="reset radius2">
                        </p>
                        
                    </form>
                    
                    <br clear="all">
                    
                </div><!--content-->
                
            </div><!--maincontentinner-->
            
            <jsp:include page="/admin/elements/copyright.jsp">
            	<jsp:param name="language" value="1" />
			</jsp:include>
            
        </div>

<jsp:include page="/admin/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>